package tut.thread;

public class ThreadX extends Thread{
	public String p = "";

	public ThreadX(String p) {
		this.p = p;
	}

	public void run() {
		for (int i = 0; i < 2; i++) {
			try {
				Thread.sleep(1000);
			} catch (Exception e) {

			}
			System.out.println(p+i);
		}
	}

}
